package we.socialcontroller.zingme;

import java.util.HashMap;
import we.socialcontroller.CSocialControllerException;



public class ZM_Session extends ZM_API_Common {
    //   protected String subApi = "/sessions";

    public ZM_Session(ZM_Config config) {
        super(config, "/sessions");
        //     super(config);
    }

    public long getLoggedInUser(String sessionKey) throws CSocialControllerException {
        HashMap<String, String> args = new HashMap();
        args.put("session_key", sessionKey);
        String result = callMethod("Users.getLoggedInUser", args);
        return Long.parseLong(result);
    }
}
